-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security solution] [RAC] Add row renderer popover to alert table "reason" field #108054
Conversation
60e18b6
to
536410e
Compare
Do we need to include the event render type in the title of the popover? I'm not super knowledgable about how all these differ and how useful that is to know. |
I also don't know how useful it would be. The event renderer name column isn't very informative: Maybe @paulewing can help us with that. |
9ba5c39
to
c8e5404
Compare
The more I think about it, at the very least, I do think we should include a title of 'Event renderer'. When we bring in the view of all these event renderers, we will want that correlation between the two. I will discuss with @paulewing whether we need a title, but even then, I think it's better to do something like: |
Spoke with @paulewing , let's go with |
d0cc470
to
f97f934
Compare
@elasticmachine merge upstream |
x-pack/plugins/security_solution/server/lib/detection_engine/signals/build_bulk_body.ts
Outdated
Show resolved
Hide resolved
6c7f6be
to
0ead1cc
Compare
Pinging @elastic/kibana-security (Team:Security) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
I added a new commit with the title change. @michaelolo24 The PR is ready for review! |
0ead1cc
to
c252e78
Compare
[RowRendererId.suricata]: 'Suricata', | ||
[RowRendererId.threat_match]: i18n.THREAT_MATCH_NAME, | ||
[RowRendererId.zeek]: i18n.ZEEK_NAME, | ||
[RowRendererId.plain]: '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want a default name for the plain renderer? We can do that in a follow up PR, but we should find out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am struggling to find a scenario where we would display the plain RowRenderer. I think that it won't be displayed on the alert page.
When I call getRowRenderer
and no ronRenderer
is found it returns null Instead of returning plainRowRenderer
.
I couldn't find any reference to plain_row_renderer.tsx on the code.
Here there is a comment mentioning it but the comment is outdated because plainRowRenderer
is not included on defaultRowRenderers
If I am right, we could delete plain_row_renderer.tsx
It looks like |
...solution/public/timelines/components/timeline/body/renderers/reason_column_renderer.test.tsx
Outdated
Show resolved
Hide resolved
...solution/public/timelines/components/timeline/body/renderers/reason_column_renderer.test.tsx
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,148 @@ | |||
/* | |||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding tests!
...rity_solution/public/timelines/components/timeline/body/renderers/reason_column_renderer.tsx
Outdated
Show resolved
Hide resolved
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
...rity_solution/public/timelines/components/timeline/body/renderers/reason_column_renderer.tsx
Outdated
Show resolved
Hide resolved
|
||
const rowRenderer = useMemo(() => getRowRenderer(ecsData, rowRenderers), [ecsData, rowRenderers]); | ||
|
||
const rowRender = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update this to:
useMemo(() => {
return rowRenderer && rowRenderer.renderRow({
browserFields,
data: ecsData,
isDraggable: true,
timelineId,
});
}, [..deps]);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This really looks great! Tested out a couple different renderers such as auditd and netflow and they worked great. Just a few comments, but nothing blocking! Great job! 💪🏾
@michaelolo24 Thank you for reviewing the PR 🙇♂️ I fixed all issues. Feel free to take a second look. |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @machadoum |
…ason" field (elastic#108054) * Add row renderer popover to alert table reason field * Add a title to row renderer popover on alert table * Fix issues found during code review
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
reason
field value.reason_column_renderer.tsx
) for the reason field that renders the row renderer on click.reason_column_renderer
to call row renderer.Checklist